/******************************************************************/
/*                                                                */
/*  Winpooch : Windows Watchdog                                   */
/*  Copyright (C) 2004-2005  Benoit Blanchon                      */
/*                                                                */
/*  This program is free software; you can redistribute it        */
/*  and/or modify it under the terms of the GNU General Public    */
/*  License as published by the Free Software Foundation; either  */
/*  version 2 of the License, or (at your option) any later       */
/*  version.                                                      */
/*                                                                */
/*  This program is distributed in the hope that it will be       */
/*  useful, but WITHOUT ANY WARRANTY; without even the implied    */
/*  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR       */
/*  PURPOSE.  See the GNU General Public License for more         */
/*  details.                                                      */
/*                                                                */
/*  You should have received a copy of the GNU General Public     */
/*  License along with this program; if not, write to the Free    */
/*  Software Foundation, Inc.,                                    */
/*  675 Mass Ave, Cambridge, MA 02139, USA.                       */
/*                                                                */
/******************************************************************/


#ifndef _SPY_FUNC_REG_H
#define _SPY_FUNC_REG_H

#include <windows.h>
#include "SpyDll.h"

BOOL HookReg_Init () ;

BOOL HookReg_Uninit () ;

// REGKEYDESC is defined in SpyDll.h
// so as to be accessible from server
UINT HookReg_GetRegKeyList (REGKEYDESC * pKeys, UINT nMaxKeys) ;

LONG WINAPI Hook_RegCreateKeyExA (HKEY,LPCSTR,DWORD,
				 LPSTR,DWORD,REGSAM,
				 LPSECURITY_ATTRIBUTES,
				 PHKEY,LPDWORD) ;

LONG WINAPI Hook_RegCreateKeyExW (HKEY,LPCWSTR,DWORD,
				 LPWSTR,DWORD,REGSAM,
				 LPSECURITY_ATTRIBUTES,
				 PHKEY,LPDWORD) ;

LONG WINAPI Hook_RegCloseKey (HKEY) ;

LONG WINAPI Hook_RegOpenKeyExA (HKEY,LPCSTR,DWORD,
				REGSAM,PHKEY) ;

LONG WINAPI Hook_RegOpenKeyExW (HKEY,LPCWSTR,DWORD,
				REGSAM,PHKEY) ;

LONG WINAPI Hook_RegSetValueExA (HKEY,LPCSTR,DWORD,DWORD,
				 CONST BYTE *,DWORD) ;

LONG WINAPI Hook_RegSetValueExW (HKEY,LPCWSTR,DWORD,DWORD,
				 CONST BYTE *,DWORD) ;


#endif
